home *** CD-ROM | disk | FTP | other *** search
Text File | 1989-10-23 | 921 b | 28 lines | [TEXT/GEOL] |
- Item 2713186 20-Oct-89 13:37
-
- From: KEMINK1 Kemink, Joost
-
- To: MID France, M.I.D.
-
- cc: MACAPP.TECH$ MACAPP Tech
-
- Sub: IObject reply
-
- Etienne,
-
- This is my opinion on IObject:
-
- Generally, when initializing an object in I<Classname>, one first sets SELF's
- instance variables to a known value. Especially those instance variables that
- will hold references to objects created in I<Classname>.
- This allows one to -in case of a failure- release any newly created data in the
- initialization process so far, just by calling FreeIfObject(instanceVar).
-
- It is this “set to NIL”-type of initialization that could be performed in
- IObject. This makes I<Classname> a bit “cleaner” in the sense that in this
- method one does not have to worry about initializing the instance variables any
- more.
-
- Joost Kemink
-
-